//
//  RechargeRecordCell.m
//  YunGou
//
//  Created by macbook on 16/6/8.
//  Copyright © 2016年 macbook. All rights reserved.
//

#import "RechargeRecordCell.h"
#import "NSString+DateTransform.h"
@interface RechargeRecordCell ()
@property (weak, nonatomic) IBOutlet UILabel *payTypeLabel;
@property (weak, nonatomic) IBOutlet UILabel *moneyLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@end

@implementation RechargeRecordCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setRechargeRecordModel:(RechargeRecordModel *)rechargeRecordModel{
    _payTypeLabel.text = rechargeRecordModel.pay_type;
    _moneyLabel.text = [NSString stringWithFormat:@"￥%@",rechargeRecordModel.money];
    _timeLabel.text = [NSString timeTransformWithString:rechargeRecordModel.time andFormatter:@"yyyy-MM-dd HH:mm:ss"];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
